/*
 * $$Id: IConst.java,v 1.57 2004/06/16 13:21:44 bel70 Exp $$
 *
 * ***** BEGIN LICENSE BLOCK *****
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in 
 * compliance with the License. You may obtain a copy of the License 
 * at http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 * the License for the specific language governing rights and 
 * limitations under the License.
 *
 * The Original Code is jforum forum code.
 *
 * The Initial Developer of the Original Code is the JResearch, Org. 
 * Portions created by the Initial Developer are Copyright (C) 2004 
 * the Initial Developer. All Rights Reserved. 
 * 
 * Contributor(s): 
 *              Dmitry Belov <bel@jresearch.org>
 *        
 * ***** END LICENSE BLOCK ***** */
 
package com.jred.jforum;

/**
 * DOCUMENT ME!
 *
 * @author $author$
 * @version $Revision: 1.57 $
 */
public interface IConst {
    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface CONFIG {
        
		public static final String CHARSET = "charset";
		public static final int DEFAULT_SKIN_ID = 1;
		public static final int MAIL_QUEUE_THREADS_COUNT = 5;
		public static final String ADMINMAIL = "adminmail";
        public static final String DOMAIN_NAME = "domainname";
        public static final String DOMAIN_URL = "domainurl";
        public static final String SESSION_LENGTH = "sessionlength";
        public static final String SITE_NAME = "sitename";
		public static final String MOTTO ="motto";
		public static final String GZIP_COMPRESS ="gzipCompress";
		
		public static final String MAILHOST = "mailhost";
		public static final String MAILUSER = "mailuser";
		public static final String MAILPASSWORD = "mailpassword";
		public static final String SMTP_SERVER_PORT = "smtpServerPort";
		
		public static final String INVADER1="invader";
		public static final String ENABLE_AUTO_LOGIN ="enableAutoLogin";
		public static final String ENABLE_FORUM_SIGN_ON ="enableForumSignOn";
		public static final String ENABLE_EMAIL_CONFIRMATION="enableEmailConfiramtion";
		public static final String PERIOD_FOR_CONFIRMATION="periodForConfirmation";
		public static final String ENABLE_FORUM_REGISTRATION="enableForumRegistration";
		public static final String ENABLE_EXT_SIGN_ON ="enableExtSignOn";
		public static final String EXT_LOGON_ACTION_URL ="extLogOnActionUrl";
		public static final String EXT_LOGOUT_ACTION_URL ="extLogOutActionUrl";
		public static final String EXT_REGISTRATION_ACTION_URL ="extRegistrationActionUrl";
		
		public static final String RSS_MAX_ITEM_COUNT="rssMaxItemCount";
		public static final String RSS_PERIOD="rssPeriod";
		public static final String RSS_TTL="rssTtl";
		
		public static final String MODULE_PREFIX = "modulePrefix";
		public static final String WEB_ROOT = "webroot";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface CONTEXT {
        public static final String SYSTEM_EXCEPTION_MESSAGE = "JRF_SYSTEM_EXCEPTION_MESSAGE";
        public static final String LAST_UPDATE_DATE = "JRF_LAST_UPDATE";
        public static final String MAIL_QUEUE = "_JRF_MAIL_QUEUE";
		public static final String DS_KEY = "JRF_DS";
        public static final String STATUS_KEY_PREFIX = "user.STAT";
    }

    /**
     * DOCUMENT ME!
     *
     * @author dbelov
     */
    public interface COOKIE {
        public static final int SECONDS_PER_YEAR = 60 * 60 * 24 * 365;
        public static final String USER_COOKIE = "JRF_USER";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface JSP {
		public static final String DEFAULT_CONTENT_TYPE = "text/html";
        public static final String OPTIONS_SEPERATOR = "--------";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface LOG {
        public static final String APP_LOG_PREF = "jforum";
        public static final String FORUM = "FORUM";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface PAGE {
        public static final String CURR_THREAD_ID = "JRED_CURR_THREAD_ID";
        public static final String MESSAGE_ACTION = "JRED_MESSAGE_ACTION";
        public static final String SELECTED_BLOCK = "JRED_SELECTED_BLOCK";
        public static final String TITLE_NAV_BAR = "JRED_TITLE_NAV_BAR";
		public static final String HAVE_AN_UPDATED_TOPICS = "JRED_HAVE_AN_UPDATED_TOPICS";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface REQUEST {
        public static final String SITE_URL = "JRED_SITE_URL";
		public static final String ENTRY_LIST = "JRED_ENTRY_LIST";
        public static final String CURR_FORUM = "JRED_CURR_FORUM";
        public static final String CURR_THREAD = "JRED_CURR_THREAD";
        public static final String FORUMS_FOR_MOD = "JRED_FORUMS_FOR_MOD";
        public static final String GROUPS_KEY = SESSION.GROUPS_KEY;
        public static final String LIST_RECORDS = "JRED_LIST_RECORDS";
        public static final String MOD_FLAG = "JRED_MOD_FLAG";
        public static final String RECORDS_DATA = "JRED_RECORDS_DATA";
        public static final String REDIRECT_URL = "JRED_REDIRECT_URL";
        public static final String REQUEST_URI = "JRED_REQUEST_URI";
        public static final String START_TIME_KEY = "JRED_START_TIME";
        public static final String UPDATED_USER = "JRED_UPDATED_USER";
        public static final String USER_MOD_FORUMS = "JRED_USER_MOD_FORUMS";
        public static final String USER_TO_SHOW = "JRED_USER_TO_SHOW";
		public static final String RSS_PUB_DATE = "JRED_RSS_PUB_DATE";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface SESSION {
        public static final String EXT_USER_KEY = "JRED_EXT_USER";
		public static final String CURR_FORUM = "JRED_CURR_FORUM";
        public static final String GROUPS_KEY = "JRED_GROUPS";
        public static final String LAST_INTIME = "JRED_LAST_INTIME";
        public static final String LAST_UPDATE_DATE = "JRED_LAST_UPDATE";
        public static final String STATUS_MESSAGE = "JRED_STATUS_MESSAGE";
        public static final String TIME_ZONE = "JRED_TIME_ZONE";
        public static final String USER_KEY = "JRED_USER";
        public static final String USER_TIME_ZONE = "JRED_USER_TIME_ZONE";
		public static final String STYLE_SETTINGS="JRED_STYLE_SETTINGS";
    }

    /**
     * DOCUMENT ME!
     *
     * @author $author$
     * @version $Revision: 1.57 $
     */
    public interface VALUES {
        public static final String ENCRYPTER_KEY = "Fvbweuehbweafhbgfhbgfhjdjp";
		public static final int NOT_EXIST = -1;
		public static final String ALL = "ALL";
        public static final String ANY = "ANY";
        public static final int DEFAULT_PASSWORD_LENGTH = 8;
        public static final String FALSE = "N";
        public static final String GMT = "GMT";
        public static final String PASSWORD_DICTIONARY = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
        public static final String TRUE = "Y";
        public static final String WHOLE = "WHOLE";
		public static final String RFC822_DATE_FORMAT="EEE, dd MMM yyyy HH:mm:ss z";
    }
	public interface Forum {
		public static final int STATUS_UNLOCKED=0;
		public static final int STATUS_TOPICS_LOCKED=1;
		public static final int STATUS_COMPLETELY_LOCKED=2;
		public static final int STATUS_INVISIBLE=3;
	}
	public interface Topic {
			public static final int STATUS_UNLOCKED=0;
			public static final int STATUS_LOCKED=1;
		}
}
